﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.AreaSlt" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>选择培训机构</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/default.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/Common.js"></script>
  <script type="text/javascript">
    function AreaSelection() {
      var area = document.getElementById("AreaSlt").value;

      if (area != "-1") {
        return true;
      } else {
        alert("请选择培训机构");
        return false;
      }
    }
  </script>
</head>
<body>
  <form id="form1" method="post" action="">  
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;老师登录</div>
      </div>
      <div class="spe_line_1"></div>
      <div class="box_1">
        <div class="fl tr left">选择培训机构：</div>
        <div class="fl">
          <% if (areaList != null && areaList.Count > 0) { %>
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">请选择</option>
            <% foreach (DictAreaModel areaModel in areaList) { %>
              <option value="<%=areaModel.ID %>"><%=areaModel.Name%></option>
            <% } %>
          </select>
          <% } %>
        </div>
      </div>
      <div style="margin:20px 0 0 120px;"><input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return AreaSelection();" /></div>
    </div>
  </form>
</body>
</html>
